]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-util: Pass the mutter context to the spawn child setup function
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 31 May 2024 14:46:14 +0000 (16:46 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 31 May 2024 14:46:14 +0000 (16:46 +0200)
This was the type the function expected, but we were actually passing
the global context to it.

This didn't crash for some reason, but indeed it was wrong and we didn't
catch it because mutter side had not type-checks either

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3355>

src/shell-util.c

index 311576c0e9a968696207706edacef0eb1dce5f61..9d1f2401875dffb5c2c34f1043f16604967f5277 100644 (file)
@@ -873,7 +873,8 @@ shell_util_spawn_async_with_pipes_and_fds (const char          *working_director
   GPid child_pid = 0;
 
   if (!g_spawn_async_with_pipes_and_fds (working_directory, argv, envp, flags,
-                                         spawn_child_setup, shell_global,
+                                         spawn_child_setup,
+                                         shell_global_get_context (shell_global),
                                          stdin_fd, stdout_fd, stderr_fd,
                                          source_fds, target_fds, n_fds,
                                          &child_pid,